package com.socialuni.center.web.controller;

import com.socialuni.sdk.api.model.QO.comment.SocialCommentDeleteQO;
import com.socialuni.sdk.api.model.QO.comment.UniCommentPostQO;
import com.socialuni.sdk.api.model.RO.comment.TalkCommentRO;
import com.socialuni.sdk.api.model.ResultRO;
import com.socialuni.center.web.serive.comment.CenterCommentService;
import com.socialuni.sdk.api.CommentAPI;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class CenterCommentController implements CommentAPI {
    @Resource
    CenterCommentService centerCommentService;

    @Override
    public ResultRO<TalkCommentRO> addComment(UniCommentPostQO uniCommentPostQO) {
        TalkCommentRO talkCommentRO = centerCommentService.postComment(uniCommentPostQO);
        return new ResultRO<>(talkCommentRO);
    }

    @Override
    public ResultRO<Object> deleteComment(SocialCommentDeleteQO commentVO) {
        return null;
    }
}